package src.main.java.modules.container;

import org.apache.ws.axis2.ValidacaoCreditoServicePortTypeProxy;
import org.apache.ws.axis2.xsd.ServiceResponse;

public class ValidacaoDeCreditoCaller {
	
//	private static final String BASE_URL = "http://staff01.lab.ic.unicamp.br:8480/ModuloValidacaoCreditoWS/services/ValidacaoCreditoService";
	private static final String BASE_URL = "http://localhost:8081/ModuloValidacaoCreditoWS/services/ValidacaoCreditoService";
	
	public static ServiceResponse getScoreByCpf(Long cpf) throws Exception{
		ValidacaoCreditoServicePortTypeProxy proxy = new ValidacaoCreditoServicePortTypeProxy();
		proxy.setEndpoint(BASE_URL);
		ServiceResponse resposta = proxy.getScore(cpf, "0123456789");
		
		return resposta;
	}

}
